<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>gptree - AI驱动的代码结构生成器</title>
    <link href="https://cdn.staticfile.org/font-awesome/6.4.0/css/all.min.css" rel="stylesheet">
    <link href="https://cdn.staticfile.org/tailwindcss/2.2.19/tailwind.min.css" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap" rel="stylesheet">
    <script src="https://cdn.jsdelivr.net/npm/mermaid@latest/dist/mermaid.min.js"></script>
    <style>
        body {
            font-family: 'Noto Sans SC', Tahoma, Arial, Roboto, "Droid Sans", "Helvetica Neue", "Droid Sans Fallback", "Heiti SC", "Hiragino Sans GB", Simsun, sans-serif;
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            min-height: 100vh;
        }
        
        .hero-gradient {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            position: relative;
            overflow: hidden;
        }
        
        .hero-gradient::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
        }
        
        .feature-card {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            transition: all 0.3s ease;
            border: 1px solid rgba(0, 0, 0, 0.05);
        }
        
        .feature-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
        }
        
        .code-block {
            background: #1e1e1e;
            color: #d4d4d4;
            font-family: 'Consolas', 'Monaco', monospace;
            position: relative;
            overflow: hidden;
        }
        
        .code-block::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 30px;
            background: #2d2d2d;
            border-bottom: 1px solid #3e3e3e;
        }
        
        .code-block::after {
            content: '● ● ●';
            position: absolute;
            top: 8px;
            left: 15px;
            color: #ff5f56;
            font-size: 12px;
            letter-spacing: 3px;
        }
        
        .gradient-text {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        
        .section-divider {
            height: 2px;
            background: linear-gradient(to right, transparent, #667eea, #764ba2, transparent);
            margin: 4rem 0;
        }
        
        .drop-cap {
            float: left;
            font-size: 4rem;
            line-height: 3rem;
            padding-right: 0.5rem;
            margin-top: 0.5rem;
            font-weight: 700;
            color: #667eea;
        }
        
        @keyframes float {
            0% { transform: translateY(0px); }
            50% { transform: translateY(-20px); }
            100% { transform: translateY(0px); }
        }
        
        .float-animation {
            animation: float 6s ease-in-out infinite;
        }
        
        .mermaid {
            display: flex;
            justify-content: center;
            margin: 2rem 0;
        }
    </style>
</head>
<body>
    <!-- Hero Section -->
    <section class="hero-gradient text-white py-20 px-6 relative">
        <div class="max-w-6xl mx-auto relative z-10">
            <div class="text-center mb-12">
                <h1 class="text-5xl md:text-7xl font-bold mb-6">
                    <i class="fas fa-tree mr-4"></i>gptree
                </h1>
                <p class="text-xl md:text-2xl mb-8 opacity-90">AI驱动的智能代码结构生成器</p>
                <div class="max-w-3xl mx-auto">
                    <p class="text-lg leading-relaxed mb-8">
                        让AI为您规划完美的项目架构，告别手动创建文件目录的繁琐时代
                    </p>
                    <a href="https://github.com/travisvn/gptree" target="_blank" class="inline-flex items-center bg-white text-purple-700 px-8 py-4 rounded-full font-semibold hover:bg-gray-100 transition-all duration-300 shadow-lg">
                        <i class="fab fa-github mr-3 text-xl"></i>
                        访问 GitHub 仓库
                    </a>
                </div>
            </div>
        </div>
    </section>

    <!-- Main Content -->
    <main class="max-w-6xl mx-auto px-6 py-16">
        <!-- Introduction -->
        <section class="bg-white rounded-2xl shadow-xl p-8 md:p-12 mb-12">
            <p class="text-lg leading-relaxed text-gray-700">
                <span class="drop-cap">g</span>ptree 是一个创新的命令行工具，它利用大型语言模型（LLMs）的能力，根据用户提供的需求或代码仓库，<strong class="text-purple-700">自动生成清晰、层级分明的代码目录结构</strong>。其主要用途是帮助开发者快速规划项目结构、理解现有代码库、或为新项目生成骨架。目标用户群体是<strong class="text-purple-700">软件开发者、项目经理以及任何需要清晰代码组织结构的技术人员</strong>。
            </p>
        </section>

        <!-- Core Features -->
        <section class="mb-16">
            <h2 class="text-4xl font-bold mb-8 text-center gradient-text">核心功能概述</h2>
            <p class="text-lg text-gray-700 text-center mb-12 max-w-3xl mx-auto">
                gptree的核心在于结合了AI的智能与代码结构的规范性
            </p>
            
            <div class="grid md:grid-cols-2 gap-6">
                <div class="feature-card rounded-xl p-8">
                    <div class="text-purple-600 text-3xl mb-4">
                        <i class="fas fa-brain"></i>
                    </div>
                    <h3 class="text-xl font-bold mb-3">AI 驱动的结构生成</h3>
                    <p class="text-gray-600">根据简单的自然语言描述，gptree能智能推断并生成符合逻辑的项目文件和目录结构。</p>
                </div>
                
                <div class="feature-card rounded-xl p-8">
                    <div class="text-purple-600 text-3xl mb-4">
                        <i class="fas fa-code-branch"></i>
                    </div>
                    <h3 class="text-xl font-bold mb-3">现有代码库分析</h3>
                    <p class="text-gray-600">不仅可以从头创建，还能分析现有代码仓库的树形结构，并根据AI的建议进行优化或扩展。</p>
                </div>
                
                <div class="feature-card rounded-xl p-8">
                    <div class="text-purple-600 text-3xl mb-4">
                        <i class="fas fa-sliders-h"></i>
                    </div>
                    <h3 class="text-xl font-bold mb-3">自定义提示词支持</h3>
                    <p class="text-gray-600">用户可以提供详细的AI提示词，以精细控制生成结构的复杂度和内容，满足特定项目需求。</p>
                </div>
                
                <div class="feature-card rounded-xl p-8">
                    <div class="text-purple-600 text-3xl mb-4">
                        <i class="fas fa-tools"></i>
                    </div>
                    <h3 class="text-xl font-bold mb-3">集成常见工具</h3>
                    <p class="text-gray-600">支持与<code class="bg-gray-100 px-2 py-1 rounded">tree</code>命令和文件系统操作无缝结合，方便用户直接在终端进行操作。</p>
                </div>
            </div>
        </section>

        <div class="section-divider"></div>

        <!-- Use Cases -->
        <section class="mb-16">
            <h2 class="text-4xl font-bold mb-8 text-center gradient-text">使用场景</h2>
            <p class="text-lg text-gray-700 text-center mb-12 max-w-3xl mx-auto">
                gptree能显著提升开发者的工作效率
            </p>
            
            <div class="space-y-6">
                <div class="bg-gradient-to-r from-purple-50 to-pink-50 rounded-xl p-8 border-l-4 border-purple-600">
                    <h3 class="text-xl font-bold mb-3 flex items-center">
                        <i class="fas fa-rocket mr-3 text-purple-600"></i>
                        新项目快速启动
                    </h3>
                    <p class="text-gray-700">当您开始一个新项目时，无需手动创建大量文件和文件夹，gptree能快速搭建基础骨架，让您专注于核心编码。</p>
                </div>
                
                <div class="bg-gradient-to-r from-blue-50 to-indigo-50 rounded-xl p-8 border-l-4 border-blue-600">
                    <h3 class="text-xl font-bold mb-3 flex items-center">
                        <i class="fas fa-search mr-3 text-blue-600"></i>
                        代码库理解与重构
                    </h3>
                    <p class="text-gray-700">面对一个不熟悉的大型代码库，gptree能帮助您生成其清晰的层级结构，快速掌握项目全貌，为后续的理解或重构工作打下基础。</p>
                </div>
                
                <div class="bg-gradient-to-r from-green-50 to-teal-50 rounded-xl p-8 border-l-4 border-green-600">
                    <h3 class="text-xl font-bold mb-3 flex items-center">
                        <i class="fas fa-users mr-3 text-green-600"></i>
                        规范化团队项目
                    </h3>
                    <p class="text-gray-700">在团队开发中，gptree可以作为工具，确保所有新项目都遵循统一的代码结构规范。</p>
                </div>
            </div>
            
            <div class="mt-8 text-center">
                <p class="text-lg text-purple-700 font-semibold">
                    <i class="fas fa-lightbulb mr-2"></i>
                    思考：gptree能否帮助您告别手动创建文件目录的繁琐，让项目启动更高效？
                </p>
            </div>
        </section>

        <!-- Workflow Diagram -->
        <section class="mb-16 bg-white rounded-2xl shadow-xl p-8 md:p-12">
            <h2 class="text-3xl font-bold mb-8 text-center">工作流程图</h2>
            <div class="mermaid">
                graph LR
                    A[用户输入需求] -->|自然语言描述| B[gptree处理]
                    B --> C{AI分析}
                    C -->|生成结构| D[项目目录树]
                    C -->|分析现有| E[优化建议]
                    D --> F[创建文件系统]
                    E --> F
                    F --> G[完成项目骨架]
                    
                    style A fill:#667eea,stroke:#fff,stroke-width:2px,color:#fff
                    style G fill:#764ba2,stroke:#fff,stroke-width:2px,color:#fff
                    style C fill:#f093fb,stroke:#fff,stroke-width:2px,color:#fff
            </div>
        </section>

        <div class="section-divider"></div>

        <!-- Advantages -->
        <section class="mb-16">
            <h2 class="text-4xl font-bold mb-8 text-center gradient-text">优势与特色</h2>
            <p class="text-lg text-gray-700 text-center mb-12 max-w-3xl mx-auto">
                gptree相较于传统手动创建或模板化工具的优势在于其AI赋能
            </p>
            
            <div class="grid md:grid-cols-2 lg:grid-cols-4 gap-6">
                <div class="text-center">